for saving to blob with size info field.
Is there an easier way than doing a directory list )ov_file_service get_dir) and locate fiel in list which has file size?
How can I get image or voice clip size?
-
MarkDuignan
- Posts: 346
- Joined: Wed Apr 18, 2012 10:33 am
Re: How can I get image or voice clip size?
I can't think of any other was in RDMLX.
However - you might find some other solutions to retrieve an IFS file size in the general IBM i community forums?
If you can wrap the logic up in a program you should be able to call it from your RDMLX code.
There is a standard IBM API called stat() or fstat() https://publib.boulder.ibm.com/infocent ... Ffstat.htm
that can return this information. You could call that from a very small CL program that binds to I think.
What OS/400 (iOS) version are you using?
However - you might find some other solutions to retrieve an IFS file size in the general IBM i community forums?
If you can wrap the logic up in a program you should be able to call it from your RDMLX code.
There is a standard IBM API called stat() or fstat() https://publib.boulder.ibm.com/infocent ... Ffstat.htm
that can return this information. You could call that from a very small CL program that binds to I think.
What OS/400 (iOS) version are you using?
Re: How can I get image or voice clip size?
I created an rpg procedure (and wrapper for lansa since it does not support them) for stat and it works for files size.
-
MarkDuignan
- Posts: 346
- Joined: Wed Apr 18, 2012 10:33 am
Re: How can I get image or voice clip size?
is it possible to post the code - it would probably be useful to other forum users.
Re: How can I get image or voice clip size?
http://www.scottklement.com/rpg/ifs.html
for ifsio_h include
for ifsio_h include
-
MarkDuignan
- Posts: 346
- Joined: Wed Apr 18, 2012 10:33 am
Re: How can I get image or voice clip size?
Thanks for that.
Here's another useful IFS file program I encountered today - http://www.itjungle.com/fhg/fhg051414-story02.html
Here's another useful IFS file program I encountered today - http://www.itjungle.com/fhg/fhg051414-story02.html