Increasing Client-side Storage

2012-11-08 Thread Nukeface
So i read the Client-side Storage introduction article. I do have a 
question.

The company I'm doing my work experience is having trouble with the 
Client-side storage of all browsers as the size limits are met. We're 
developing an app which requires offline capability and uses lots and lots 
of data on the mobile device. 

Is there a way to automatically increase the maximum size, or set it to 
unlimited size, for the application? Or is there a way to achieve this with 
user confirmation? 

Our problem is that the application crashes when the limit is hit, which 
happens during synchronization, so not all of the required user data is yet 
present. 

Thx in advance.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/jMdEP4alVWwJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Increasing Client-side Storage

2012-11-08 Thread Joseph Lust
Sounds like a likely browser defect.

Limit of 5MB per app per browser. According to the HTML5 
spechttp://www.w3.org/TR/2009/WD-webstorage-20091222/#the-storage-interface, 
 this limit can be increased by the user when needed; however, only a few 
 browsers support this


So it really depends on the browser, as my understanding is that the user 
is prompted to allow greater storage. Clearly you cannot just set it 
infinite or a malicious page could crash someone's harddrive. What browsers 
are you using this on and do all of them generate the error?

Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/vmPjcQISjHIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Increasing Client-side Storage

2012-11-08 Thread Paul Stockley
Actually the limit is 2500 characters in many browsers as they store the 
data in mult-byte format. Unless the browser supports it, there is no way 
of increasing this. What browser/versions are you using?

On Thursday, November 8, 2012 12:32:04 PM UTC-5, Joseph Lust wrote:

 Sounds like a likely browser defect.

 Limit of 5MB per app per browser. According to the HTML5 
 spechttp://www.w3.org/TR/2009/WD-webstorage-20091222/#the-storage-interface,
  
 this limit can be increased by the user when needed; however, only a few 
 browsers support this


 So it really depends on the browser, as my understanding is that the user 
 is prompted to allow greater storage. Clearly you cannot just set it 
 infinite or a malicious page could crash someone's harddrive. What browsers 
 are you using this on and do all of them generate the error?

 Sincerely,
 Joseph


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/bS05NJqzER0J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Increasing Client-side Storage

2012-11-08 Thread Joseph Lust
I had been using FF last year, though I was only storing about 250K of 
serialized character data.

Perhaps take a look at the source of the Kindle Chrome app. It stores the 
book content offline. They must handle this somehow.


Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/lo4IUW16agYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Increasing Client-side Storage

2012-11-08 Thread alucard
If you are developing for mobile devices you could try with 
Phonegaphttp://phonegap.com/ (aka 
Apache Cordova http://incubator.apache.org/cordova/). They have a 
filehttp://docs.phonegap.com/en/2.2.0/cordova_file_file.md.html#Fileand a 
storagehttp://docs.phonegap.com/en/2.2.0/cordova_storage_storage.md.html#StorageAPI.
 I believe these support large ammounts of data. Also checkout 
gwt-phonegap https://code.google.com/p/gwt-phonegap/.

Hope this helps.

On Thursday, November 8, 2012 12:00:47 PM UTC+1, Nukeface wrote:

 So i read the Client-side Storage introduction article. I do have a 
 question.

 The company I'm doing my work experience is having trouble with the 
 Client-side storage of all browsers as the size limits are met. We're 
 developing an app which requires offline capability and uses lots and lots 
 of data on the mobile device. 

 Is there a way to automatically increase the maximum size, or set it to 
 unlimited size, for the application? Or is there a way to achieve this with 
 user confirmation? 

 Our problem is that the application crashes when the limit is hit, which 
 happens during synchronization, so not all of the required user data is yet 
 present. 

 Thx in advance.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/vL9mJi4UXTEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Increasing Client-side Storage

2012-11-08 Thread Oliver Krylow
Currently the only browser I know of that allows the user to set the size
of local storage is safari .

But in general I do not recommend using local storage for data heavy
storing. Think of it rather as advanced cookies. The best use case is if
you want to serialize the state of your views to json ,so that you can
quickly recover it when the user revisits your app.

Local storage is absolutely NOT recommended for storing sensitive data, it
is unsafe.

If you need to persist a lot of data on a fat client I suggest taking a
look the HTML file api.
It gives you a sandboxed space on the clients machine with unlimited
storage. The downside is, that it is a HTML 5 feature, so no older browser.

Good luck,

Oliver

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.