Document Open using Stream - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Submit your requests and polls about new features
  • Page:
  • 1

TOPIC: Document Open using Stream

Document Open using Stream 5 years 8 months ago #1544

  • bororo
  • bororo's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
I see there are two methods for opening a document

public int Open( String path, String opassword, String upassword )
public int OpenMem( byte[] data, String opassword, String upassword )

it there a chance for you to provide also a method that uses streams instead of a byte[]?

What we are intrested in is having the pdfs stored encrypted (using our own implementation) on the sd card and decrypting them on the fly (without using a temp-decrypted file). The byte[] method could work but since some of our pdfs are 80mb big, i doubt that android phones can hold all that in memory.
The following user(s) said Thank You: lorenzo

Please Log in or Create an account to join the conversation.

Document Open using Stream 5 years 8 months ago #1548

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
i'm thinking.
maybe i need declare a new JAVA interface.
but... how the performance of java decrypting?

Please Log in or Create an account to join the conversation.

Document Open using Stream 5 years 8 months ago #1549

  • bororo
  • bororo's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
The performance is an issue i guess but it depends on the actual algorithm and shouldn't bother you. One could just perform a simple xor every x number of bytes (so it;s really a scrambled file) and this will have no impact on the reading if we are talking about streams.

Please Log in or Create an account to join the conversation.

Document Open using Stream 5 years 8 months ago #1560

  • ArtiomVIP
  • ArtiomVIP's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Working on the same task, so we're waiting for solution too.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum