Q
Problem solve Get help with specific problems with your technologies, process and projects.

How can I adjust the size of images after they are uploaded?

I have a database with a form and this form has the basic Notes upload control for images. I need to be able to control the size of the images users upload AFTER they're uploaded so that they all fit nicely within the form from their Notes client and don't push all the other fields to the right. We run our intranet from Notes clients, not the Web -- at least not yet. So how can I add this functionality? Does SearchDomino.com have this answer?
It is very difficult to answer this question, as I do not know what you are doing with the images after they are uploaded. Are they stored in the document? Are they stored in an image repository in your database, etc.?

My best guess for you is to not directly refer to an image when displaying it on your page, as then indeed you will display the image in its original state. Instead, use pass-thru HTML, like the following:

<img src="/mydb.nsf/viewname/docid/$file/imgname.gif?openElement" border="0" width="10" height="10">

By hiding the attached images, you can refer in your document to the image in this way and control the size to your needs. Each part of the URL can be dynamically created based on the document you opened, making it a formula that will work in any document. Hope this helps.


Feedback from questioner:

The images are stored in the document and I am not doing Web development. I'm doing Notes development so passthru will not solve the problem. Do you know how to do this in Notes using LotusScript or some other method?


Hans' answer:

Unfortunately this not possible using LotusScript or any other front language. It can be done using API Calls; however, the method would take too long to explain here.

This was last published in April 2003

Dig Deeper on Domino Resources - Part 4

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close