Forums

ASP

This topic is locked

Add a Suffix

Posted 02 Jul 2007 12:09:26
1
has voted
02 Jul 2007 12:09:26 fergus dyersmith posted:
I want to pull a file from a recordset but add a suffix after the filename.

i.e. Using Smart Image Processor - It saves an uploaded filename to database and also creates a thumbnail with the suffix _small. I can pull out the original filename but how do I add the the _small suffix to the the filename

Thanks

Replies

Replied 03 Jul 2007 09:25:06
03 Jul 2007 09:25:06 Kiril Iliev replied:
Hello Fergus,

Making thumbnails and save filenames in a database check the following tutorial: dmxzone.com/showDetail.asp?TypeId=2&NewsId=3977&LinkFile=tutorials/Make_Thumbnails_database/index.htm

However, here is another solution provided by Alan:
<i>
You do not need to enter the thumb into the database because as long at the 'suffix' for the thumb is always the same you can write a 'replace' so you can get the thumb to act dynamically on the page.
eg,. =Replace(rsPics("Pic_Enlarge", ".jpg", "_small.jpg" )
</i>
Regards,
DMX Zone Support Team
Replied 05 Jul 2007 10:41:48
05 Jul 2007 10:41:48 fergus dyersmith replied:
Great thanks. These things so obvious when you see the solution

Fergus

Reply to this topic