AmiFox AROS and AmiSSL
I got a new AmiSSL Library for AROS i386 ABIv0 and this time it works smoothly. The httpstest worked without a problem.
So I created a new Version of AmiFox for AROS with SSL enabled and it also worked. That went almost a bit too smoothly. noticed already that the images (logo and lock icon) looks wrong in AROS, it seems the TImage does not work properly, the lock is only shifted a bit, but the logo is completely destroyed. What to do about it, I want at least the lock look right, that the user can see if they are on a secure connection. So the easiest way it to bring in the images as iff and load them with Datatypes. The difficult part here is that you cannot load files from memory before Datatypes library V44. So I never do that for m68k Amiga, I always put a file to HD or RAM and load that one. But, here on AROS there must be a datatypes v44+, easy. And yes the datatypes library is v45 so it should work, spoiler, it does not, it does not even give a error message. The object is nil and the error code is 0, nice, a little bit grepping in the AROS code revealed, it seems it is still not implemented. Ok back to field one, I implement that save to T: as file and load that, not nice but it works, and for AROS it’s not too bad to put some stuff into Ram disk, it had enough RAM. But so finally it works, SSL with AmiFox on AROS ABIv0 makes a nice secure connection to the server, visible by the little lock in the lower right corner.
Should work
DTImage = NewDTObject(NULL,
DTA_SourceType, DTST_RAM,
DTA_BaseName, „jpeg“,
PDTA_DestMode, PMODE_V43,
TAG_DONE);
see https://forum.amiga.org/index.php?topic=12872.0
But thats the the wrong way around, I dont want to save a jpeg, I want to LOAD an jpeg from memory and that is DTST_MEMORY with DTA_SourceAddress and DTA_SourceSize from where the image should be read.
What you mean is to create an empty image draw you stuff into and save it as jpeg… other usecase.