Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi, all,

What happens when the document I want to download exceeds some predefined size of the handset where it is too big to fit in memory? What are some of the common ways to deal with that?

How does brew deal with caching it to disk and using the parser in chun mode with calbacks?

Anybody knows about this? This it urgent!!

Thank you.

Anybody knows about this?

Anybody knows about this?

There is no built-in capability in BREW to accomplish this. You will need to perform your own file writes from the buffer when necessary.

There is no built-in capability in BREW to accomplish this. You will need to perform your own file writes from the buffer when necessary.

Quote:Originally posted by mohlendo
There is no built-in capability in BREW to accomplish this. You will need to perform your own file writes from the buffer when necessary.
So, I use IFILE_SetCacheSize() to manually set the cache size. Can you suggest some implementation methods to do this? Thanks.

Quote:Originally posted by mohlendo
There is no built-in capability in BREW to accomplish this. You will need to perform your own file writes from the buffer when necessary.
So, I use IFILE_SetCacheSize() to manually set the cache size. Can you suggest some implementation methods to do this? Thanks.

IFILE_SetCacheSize() affects file writing operations. You will have to manually perform IFILE_Write() operations to write the information from your buffer to the file system when the buffer fills up.

IFILE_SetCacheSize() affects file writing operations. You will have to manually perform IFILE_Write() operations to write the information from your buffer to the file system when the buffer fills up.