Thank you so much shai.. its working now ..
On Thursday, February 15, 2018 at 10:53:39 AM UTC+5:30, Shai Almog wrote:
>
> You did 99% of the work. You saved the file to the right location now you
> just need to execute that file:
>
> Display.getInstance().execute(fs.getAppHomePath() +
You did 99% of the work. You saved the file to the right location now you
just need to execute that file:
Display.getInstance().execute(fs.getAppHomePath() + "MyFileName.pdf");
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To
No Steve, i don't want to load resource file, here i want to load byte
array(getting from service) as pdf file.
how to load byte array as pdf file? .
On Wednesday, February 14, 2018 at 7:21:55 PM UTC+5:30, Steve Hannah wrote:
>
> If you're loading a resource file from the file system,
If you're loading a resource file from the file system, you'll need to use
the Resources.open(InputStream) variant. (i.e. open an input stream from
the file system, and pass that to Resources.open().
Steve
On Wed, Feb 14, 2018 at 3:35 AM, wrote:
> when i tried to call
when i tried to call "Display.getInstance().execute()" method it is asking
URL but here i have byte array(byte[])..
so how can i use "Display.getInstance().execute()" for byte array(byte[]).
On Wednesday, February 14, 2018 at 10:58:41 AM UTC+5:30, Shai Almog wrote:
>
> Why are you calling
Why are you calling Resources.open?
Try Display.getInstance().execute().
Resources.open works with "resource files" not files.
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails
Sorry for late reply Steve..
here is the full stack trace
Resource not found:
file:///data/data/com.mypackage.myapp/files/MyFileName.pdf
java.io.IOException:
file:///data/data/com.mypackage.myapp/files/MyFileName.pdf not found
at com.codename1.ui.util.Resources.open(Resources.java:740)
Thanks shai for reply.. I have tried "fs.mkdir(fs.getAppHomePath());" like
below but still i'm getting
> java.io.IOException:
> file:///data/data/com.engravsystems.emqim/files//MyFileName.pdf not found ..
>
here is the code :
FileSystemStorage fs = FileSystemStorage.getInstance();