Sie können mich buchen für:
Individuelle Schulungen für XPages, JavaScript und Appcelerator Titanium Software-Entwicklung für IBM XPages, Appcelerator Titanium (Mobile Apps iPhone, iPad, Android, Blackberry 10), Mobile Web und IBM Notes
Do you want to distribute files like PDF and DOC from Domino to an iPhone or iPad App?
Julian Buss, April 25th, 2012 17:49:46
Tags:  Lotus Domino  dominotogo 
As you might have read, I'm working on downloading RichText inline-images and file attachments from a Lotus Notes or iNotes Notebook to my NotesBook App.

I made some significant progress on this topic today and beside some final polishing work, it works awesome! I can embed images into the RichText of notebook entries, and I can attach files like photos, PDFs or even Word documents to a notebook entry in Lotus Notes. Then I tap one button in my NotesBook iPhone and iPad App to download these images and files to my iPhone or iPad.

The download happens in the background while showing the progress in a nice progress indicator. When finished, the inline images are displayed in the notebook entry on my iPhone or iPad, just as in Lotus Notes. The file attachments are in the notebook entry, just as in Lotus Notes. I can tap on a file attachment to view it right on my iPhone and iPad.

Here are some screenies from the iPad version:

Image:Do you want to distribute files like PDF and DOC from Domino to an iPhone or iPad App?
- inline images in Lotus Notes RichText on the iPad -

Image:Do you want to distribute files like PDF and DOC from Domino to an iPhone or iPad App?
- File attachments, tap on a attachment to view it right on the device -

Image:Do you want to distribute files like PDF and DOC from Domino to an iPhone or iPad App?
- viewing a PDF attachment on the iPad -


If the notebook entry changes in Lotus Notes, the files belonging to the entry are downloaded to my iPhone or iPad again automatically, and orphan files are deleted automatically. It. just. works.
Furthermore, there is a size limit to avoid downloading too big files (currently at 10MB, but I will create a setting for this).

And remember, the files are available when the iPhone or iPad is offline, too!  

Distributing company related files to the iPhone and iPad

While playing with these new feature, I realized that this is not only cool for getting the Lotus Notes or iNotes Notebook to your iPhone or iPad. It's nice for distributing all kind of company related content and files to iPhones and iPads, too!

Basically, this will be possible by simply creating a Lotus Notes Notebook application on the Domino server, allow a group of people to access it and pointing my NotesBook iPhone and iPad App to this central notebook. Pretty easy and cheap, only 5.99 per user for the App.

But the downside is, that NotesBook can only connect to one notebook at a time. So I'm thinking about creating a new, extended version of the App that can work with multiple notebooks. What do you think, would that make sense?


Comments (5) | Permanent Link

Comments:

1) Do you want to distribute files like PDF and DOC from Domino to an iPhone or iPad App?
Tom Mayer 25.04.2012 19:07:26

Does your application support local encryption? As far as I know all this Titanium stuff doesn't support that - and that's business critical in my opinion.

2) Do you want to distribute files like PDF and DOC from Domino to an iPhone or iPad App?
Julian Buss 25.04.2012 19:13:42

I did a quick research on that topic a while ago and found that if the iOS device is protected by a PIN, files of an App are encrypted automatically.

But I don't know for sure yet, have to check it.

Even if not, I'm pretty sure that I could do the encryption on my own, I already have a JavaScript class for that.

3) Do you want to distribute files like PDF and DOC from Domino to an iPhone or iPad App?
Tom Mayer 25.04.2012 20:14:54

Thanks for your answer. The PIN protection only works for devices which are locked - if not locked (or jailbroken) only applications which care for encryption themselves are secure. But so far - good work! How are you converting the inline images? I assume with MIME...

4) Do you want to distribute files like PDF and DOC from Domino to an iPhone or iPad App?
Eric Mack 25.04.2012 20:38:17

Nice work, Julian, I look forward to reviewing your solution as one to recommend to our customers. Keep up the good work!

Eric

5) Do you want to distribute files like PDF and DOC from Domino to an iPhone or iPad App?
Julian Buss 25.04.2012 20:39:20

I'm pretty sure that every company device is not jailbroken and protected by a PIN, so I feel this kind of security is ok for the start.

Nevertheless, I will look into providing a custom encryption in the future.

Regarding the images, I let Domino do the hard work :) I'm extracting URLs that point directly to the images so that I can download them as files. Sounds easy, but involves some challenges when it's going into the details :-)

Add a comment
Subject:
   
Name:
Mail:
Web:
 
Comment:  (No HTML - URLs with leading http://)
 
remember me?   
You can hire me.
See my Linkedin profile for details.

Thanks for reading and have a nice time here!

Please note my Apps for iPhone and iPad: NotesBook: takes your Lotus Notes Notebook (Journal) to your iPhone and iPad xpageswiki.com: huge XPages Tips & Tricks collection for iPhone and iPad