This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Servlets and the fly likes passing image file as string Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

passing image file as string

muntago Richard
Ranch Hand

Joined: Nov 13, 2010
Posts: 82
I want to pass image file as string as follows


I place this under header

import java.lang.Object;
import com.sun.org.apache.xerces.internal.impl.dv.util.Base64;
import java.io.File;

but is displays


Error cannot find symbol
symbol : method encodeFromFile(java.lang.String)
location : com.sun.org.apache.xerces.internal.impl.dv.util.Base64;



any help
Jayesh A Lalwani
Bartender

Joined: Jan 17, 2008
Posts: 2052
    
  22

muntago,

Please do not post the same question in multiple forums. I am locking this thread. Please continue discussion on this thread
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: passing image file as string
 
Similar Threads
Images in applets won't compile!
java util package
error when testing...any help will be appreciated
Login page security using Servlet
background image on JPanel