Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3782744
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:07:34+00:00 2026-05-19T11:07:34+00:00

Is it possible to upload an image file using AJAX to Domino Server? I

  • 0

Is it possible to upload an image file using AJAX to Domino Server? I am trying to upload a photo from Android phone. I can send the image data back to a rich text field in Domino. But I am not sure how to render it as an image on the Domino Form. Ideally I’d like to send the photo via ajax and have it attached to the Domino document as to a $File field.

The only example that is even close is here: http://markwambler.blogspot.com/2009/10/webcam-snapshots-and-lotusdomino.html

Thanks in advance. I have been struggling on this for days.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T11:07:35+00:00Added an answer on May 19, 2026 at 11:07 am

    So if you are able to send a Base64 encoded version to a rich text field and you want to display it via a browser then you have a couple of things to do.

    1. Make sure that you are creating your document using MIME.
    2. Create a MIME entity for the attachment.
    3. Populate the MIME entity with the Base64 string.
    4. Decode it into a regular file attachment on the document.

    This will give you a regular Domino document with an attachment that you can create a URL and to link to.

    This is essentially what the linked example code is doing. Namely:

    session.ConvertMime=False
    ...
    Set child = parent.CreateChildEntity()
    Set header = child.CreateHeader("Content-Disposition")
    Call header.SetHeaderVal({attachment; filename="} & fileName & {"})
    ...
    Call child.SetContentFromText(stream, "image/jpeg", ENC_BASE64)
    Call child.DecodeContent()
    

    Once you have saved the document then it is trivial to arrange a link to the attachment url with something like db.nsf/viewname/dockey/$file/filename.jpg or put the url in an img src parameter.

    Not having a set up to play with at the moment it’s a little difficult to test. I also suspect it would be better if you could mimic a regular file upload from the client. In that case you would not need to mess about with Base64 and MIME with the 1.3x expansion over the wire that gives.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can't seem to upload an image using Zend_Service_Nirvanix. Is it even possible? I
Possible Duplicate: how to upload a audio file from iphone documents folder to server
I upload image files using aspupload component. I was wondering if its possible to
Is it possible to upload a file to another server or pass a file
Is is possible to upload a photo to facebook using Corona?
I want every single details from the file i upload.. i am using attachment_fu,
How to upload image using jQuery (AJAX) and ASMX web service - asp.net? I
I'm using Uploadify and Kohana and I'm creating file uploader. User can upload only
I have been trying to use an ajax-style file upload component (like the dojox
I am using PHP to create an image file on my server. Now I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.