Results 1 to 2 of 2
  1. #1
    off99555 is offline Member
    Join Date
    Dec 2010
    Posts
    11
    Rep Power
    0

    Question [SOLVED] How do I write or read data text?

    Data Text is starts with:
    data:text/csv;base64,...
    data:image/jpeg;base64,...

    Its texts are very long (It look like bytes text).
    How do I do this like in Firefox when I paste those data text on the Location Bar and it will decode them in to a file or an image (if it is an image data).

    Below is the image example that is not hosted by any service, and it is viewable on any PC that has Web Browser!

    Copy the code below and paste it in your location bar to see an image!
    data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAA0JCgsKCA0LCgsODg0PEyAVExISEyccHhcgLikxMC4pLS wzOko+MzZGNywtQFdBRkxOUlNSMj5aYVpQYEpRUk//2wBDAQ4ODhMREyYVFSZPNS01T09PT09PT09PT09PT09PT09PT0 9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0//wAARCAEsAS4DASIAAhEBAxEB/8QAGgABAAIDAQAAAAAAAAAAAAAAAAQFAQIGA//EADwQAAIBAwAFCQUIAQUBAQAAAAABAgMEEQUSITWxBhMWMVFTc 5LRFCJBUnEyVGGBkZOh8CMVJELB4WLx/8QAGAEBAQEBAQAAAAAAAAAAAAAAAAECAwT/xAAgEQEAAwACAgMBAQAAAAAAAAAAAQIREiEDMUFRYRMi/9oADAMBAAIRAxEAPwDsHo32ixtZW6t4SVOEsuC96Wr/AMtm1bSRXtNW1g6dnazr63vKMI6uNvxfZs/QnaP3dbeDDgiQInBSRs6urFeyWyfxzSg8/wAnrdWjVVezWVo4au3MI5zktga5d+hT0bFqjWnUtbd1pLMYuEc J9iPOFnVc8zsrZRaWdWEHh9TxxLwDn+Cps7NuT9rs7VLbjVpRx 8Mf9mKNo3zqq2Nuvd9xuEPtfl+RbgcvwUXsdbnZtWVsoyeUnCD 1eo97qyXOxdva2+rq7c04bP7s/QtgOffoVNrZ/wCaXtNpbKGr7qVOHXs/9I3sVylUxaWsnP7P+OCUX1bP4L8F59+hT09HynQjGdG2pVIzjm XNRlrwT2/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7qfjLgyv6R3ndW/lfqRr/S1xf0VSrQpRipa3upp5w/x/ED/9k=

    Again, how do I write or read data text? (Example code is fine)
    Help me pls. :confused:

    PS. I'm not good English.:p
    Last edited by off99555; 12-08-2010 at 10:39 AM.

  2. #2
    off99555 is offline Member
    Join Date
    Dec 2010
    Posts
    11
    Rep Power
    0

Similar Threads

  1. Replies: 6
    Last Post: 12-01-2010, 05:31 AM
  2. Replies: 0
    Last Post: 11-21-2010, 05:10 PM
  3. Read/edit/Write text file
    By Graupner1000 in forum New To Java
    Replies: 17
    Last Post: 08-25-2010, 02:04 PM
  4. Read and Write file
    By mrdestroy in forum New To Java
    Replies: 13
    Last Post: 10-31-2008, 12:11 PM
  5. Replies: 40
    Last Post: 07-04-2008, 08:41 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •