[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Image from ImageURL back to bytes  XML
Forum Index -> Development
Author Message
kklasen

Power User

Joined: 19/11/2020 08:33:30
Messages: 66
Offline

Hello Björn;


A default Image should by saved, it is load to the Image viewer, already.

Code:
 m_imageURL = TempFileManager.saveTempFile(imageId,bytes); 


Who I can make it back to byte?
Bytes = FielToBtye.SaveFile(m_imageURL); like this

Thank You!

kind regards

Klas


kklasen

Power User

Joined: 19/11/2020 08:33:30
Messages: 66
Offline

I made a work around 😉 now, it check if the Fileupload is empty/ null when it’s null it load the byte from Database.

CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5521
Offline

Hi,

the TempFileManager is a "write-only-medium"...
Please note that the data inside is cleaned with the end of a session latest.

If you want to keep the byte[] for own purposes please do so - but not through the TempFileManager. ;-)

Kind regards! Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team