Java example on how to upload csv data to the data store

1,056 views
Skip to first unread message

gustavo

unread,
Feb 13, 2014, 2:53:58 PM2/13/14
to google-a...@googlegroups.com

Does anybody have an example on how to easily upload csv data to the 
data store with java? 

Thanks 

Vinny P

unread,
Feb 13, 2014, 9:27:42 PM2/13/14
to google-a...@googlegroups.com
On Thu, Feb 13, 2014 at 1:53 PM, gustavo <prac...@gmail.com> wrote:
Does anybody have an example on how to easily upload csv data to the 
data store with java? 


Do you want to use a CSV file to define entities within the datastore, or upload and save the entire CSV file to App Engine?

If you're using the CSV file to define entities, you can use the bulkloader ( https://developers.google.com/appengine/tools_tips#Bulk_Loader ) to automatically load entities into the datastore. If you want to save the entire file, you can upload the file to the Blobstore ( https://developers.google.com/appengine/docs/java/blobstore/#Java_Uploading_a_blob ) or Google Cloud Storage ( https://developers.google.com/appengine/docs/java/googlecloudstorageclient/ ). Code examples are available at the above links.
 
 
-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

Andrei Volgin

unread,
Feb 14, 2014, 9:49:39 AM2/14/14
to google-a...@googlegroups.com
If you want to convert CSV data into entities, you may use


to process your CVS file.
Reply all
Reply to author
Forward
0 new messages