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() + "MyFileNa
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 unsu
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, you'l
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 "Display.getInstance().ex
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 Resour
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 f
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)
It is very strange that the IOException is reporting the path with the
file:/// prefix. This should have been stripped by the time it gets
there. Can you post a full stack trace?
On Tue, Feb 13, 2018 at 1:09 AM, wrote:
> Thanks shai for reply.. I have tried "fs.mkdir(fs.getAppHomePath());"
>
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();
I think your code is correct. I think that app home might not exist which
seems to me like an omission on our part.
Try
fs.mkdir(fs.getAppHomePath());
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group
10 matches
Mail list logo