Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Image to Cache

7 posts in General Discussion Last posting was on 2005-07-28 17:16:46.0Z
Robert Posted on 2005-07-19 11:26:11.0Z
Reply-To: "Robert" <robert@cyberprop.com>
From: "Robert" <robert@cyberprop.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
Subject: Image to Cache
Lines: 6
Organization: USP Designs
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: rrba-146-82-153.telkomadsl.co.za
X-Original-NNTP-Posting-Host: rrba-146-82-153.telkomadsl.co.za
Message-ID: <42dce353@forums-1-dub>
Date: 19 Jul 2005 04:26:11 -0700
X-Trace: forums-1-dub 1121772371 165.146.82.153 (19 Jul 2005 04:26:11 -0700)
X-Original-Trace: 19 Jul 2005 04:26:11 -0700, rrba-146-82-153.telkomadsl.co.za
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:468
Article PK: 17693

is there a way to read an image file from the device and write it into the
cache for displaying
I have a pod that reads the image and writes the binary into a table field.
Can I take that binary data and post it to the cache


tony pigram Posted on 2005-07-19 14:33:44.0Z
Reply-To: "tony pigram" <tony.pigram@nospam.com>
From: "tony pigram" <tony.pigram@nospam.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
References: <42dce353@forums-1-dub>
Subject: Re: Image to Cache
Lines: 54
Organization: iAnywhere Solutions
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
NNTP-Posting-Host: host81-130-103-46.in-addr.btopenworld.com
X-Original-NNTP-Posting-Host: host81-130-103-46.in-addr.btopenworld.com
Message-ID: <42dd0f48$1@forums-1-dub>
Date: 19 Jul 2005 07:33:44 -0700
X-Trace: forums-1-dub 1121783624 81.130.103.46 (19 Jul 2005 07:33:44 -0700)
X-Original-Trace: 19 Jul 2005 07:33:44 -0700, host81-130-103-46.in-addr.btopenworld.com
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:469
Article PK: 8894

Hi Robert,

I am curious as to what you are doing?

My initial response to this posting was to query how you have built your
application and suggest a better design, but I then realised that you might
be using the PDA to take pictures of properties (for example) and then you
want to use MBusiness to sync the pictures back to the web server.

Firstly, you would not insert anything directly into the MBusiness Cache,
this is managed by MBusiness Client only - I'm sure someone like 'Enrico'
could provide more details on this.


If you were to use a database, such as UltraLite, you could insert the image
into the database and then sync the database back to the web server (but
this would require using UltraLite and MobiLink aswell as the MBusiness
Anywhere Server+Client) but your web page could then reference the new image
in the database and display it to the user immediately.

If not, you could write a web page that has javascript that would allow a
user to select the file, and then in code perform a manual form submission
and include the image within the form post. But doing this would mean that
the image would not be displayable on any screens you have on the PDa within
the web application. You will also have to build a server-side web page to
take the post of the image and to either create the file on the server or
insert it into a database, which could then be referenced by your web app
when building the screens to return to the PDA. This would mean the image
would not be available to the user until after an MBiz sync.


If you could provide a little more info about what you are really trying to
achieve, I'm sure there are many people that will be able to help you out.
hope that helps. ;o)

what version of MBusiness Anywhere Server are you using? v5.? web/pro/app
edition?
what version of MBusiness Anywhere Client are you using? build x?

thanks

tony

"Robert" <robert@cyberprop.com> wrote in message
news:42dce353@forums-1-dub...
> is there a way to read an image file from the device and write it into the
> cache for displaying
> I have a pod that reads the image and writes the binary into a table
field.
> Can I take that binary data and post it to the cache
>
>


Robert Posted on 2005-07-20 07:25:08.0Z
Reply-To: "Robert" <robert@cyberprop.com>
From: "Robert" <robert@cyberprop.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
References: <42dce353@forums-1-dub> <42dd0f48$1@forums-1-dub>
Subject: Re: Image to Cache
Lines: 43
Organization: USP Designs
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
x-mimeole: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: rrba-146-82-153.telkomadsl.co.za
X-Original-NNTP-Posting-Host: rrba-146-82-153.telkomadsl.co.za
Message-ID: <42ddfc54@forums-1-dub>
Date: 20 Jul 2005 00:25:08 -0700
X-Trace: forums-1-dub 1121844308 165.146.82.153 (20 Jul 2005 00:25:08 -0700)
X-Original-Trace: 20 Jul 2005 00:25:08 -0700, rrba-146-82-153.telkomadsl.co.za
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:475
Article PK: 8899

Mbusiness 5.7 build 32
ASA 9.0.2.3044
This application is for the real estate agent.
We use Mbusiness and ultralite database with Mobilink to sync
We have an offline application that Estate Agencies use to capture
properties, contacts canvass and such. The mobile application was written
specially for the Agent.
to have at their disposal all properties and contacts on a hand held
device.On the application there is a property form and a contact maintenance
form.
The property page has the picture displayed on it .
All works well. You can update from the offline or the device to a central
database.From there the agency's website and a few property portal websites
are updated.
At the moment they can capture a picture on the offline and update to the
server. Device then downloads a hidden page with all images relative to that
client. Images are stored in the device's cache.
Now the interesting bit
Agent takes a photo with the device and wants to assign it to the
property.Easily done. I have written the pod (lots of help from Sybase)to
take the image and convert to binary and save to the database..Data sync
send data to server and I extract and write the image to the internet, which
is then downloaded by the hidden page Good and well works fine,
BUT
most of our clients work offline.Thus the picture is not available for
displaying in the properties html page on the device after a new picture is
captured.They have to sync first.We thought it might be possible to write
the image into the cache so that once captured it would be available for
displaying immidiately.even if offline.
Our wireless hotspots are few and far between. And more people don't like
sharing.Something for Something.
Mbusiness does not allow you to read a file from the device "hdd"
memory.Normal javascript has a get file function but Mbusiness does not.
I see 2 possible solutions.
1 - write to mbusiness cache
2- write pod to display the image but that would mean I have to leave the
current html page and go to another page or application.
Our users are not really computer literate(just lazy) and this could lead to
complications.
Hope this explains abit more .
Robert


tony pigram Posted on 2005-07-28 09:35:28.0Z
Reply-To: "tony pigram" <tony.pigram@nospam.com>
From: "tony pigram" <tony.pigram@nospam.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
References: <42dce353@forums-1-dub> <42dd0f48$1@forums-1-dub> <42ddfc54@forums-1-dub>
Subject: Re: Image to Cache
Lines: 96
Organization: iAnywhere Solutions
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
X-Original-NNTP-Posting-Host: vpn-uk-035.sybase.com
Message-ID: <42e8a6dd$1@forums-2-dub>
X-Original-Trace: 28 Jul 2005 02:35:25 -0700, vpn-uk-035.sybase.com
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 28 Jul 2005 02:35:26 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 28 Jul 2005 02:35:28 -0700
X-Trace: forums-1-dub 1122543328 10.22.108.75 (28 Jul 2005 02:35:28 -0700)
X-Original-Trace: 28 Jul 2005 02:35:28 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:497
Article PK: 17700

Hi Robert,

>which is then downloaded by the hidden page

So, you have a web page that has references to the images in html tags, ie.
<img src="image/image1.gif">

> most of our clients work offline.Thus the picture is not available for
> displaying in the properties html page on the device after a new picture
is
> captured.They have to sync first.

and because the above web page is dynamically generated on the server (and
not on the device) the extra image does not have a <img> tag which
references the new image and you cannot access the MBiz cache directly and
modify the cached web page to include the new image reference.

you're right, it's actually quite a tricky scenario.

So, the options are:
Yes, you could write a pod (as you suggest)
or but with a little re-design, what you might be able to do is.....

instead of the hidden web page with the links to the images, try storing the
images in the UL database on the server? syncing the UL database to the PDA,
then have the propertiy html web page query the UL database to extract and
display the image? (rather than replying on the MBiz linked image?)
this way when the new image is captured and inserted into the UL database,
it is readily available for display on the PDA.

would this work for you?

would this be prohibitive for data sizes? as MBiz does compress images quite
well when syncing to a PDA, I'm not sure what the impact of putting the
images into UL would be for sync data throughput/ sync times.


failing that - anyone else got any other idea's?

thanks

tony

"Robert" <robert@cyberprop.com> wrote in message
news:42ddfc54@forums-1-dub...
> Mbusiness 5.7 build 32
> ASA 9.0.2.3044
> This application is for the real estate agent.
> We use Mbusiness and ultralite database with Mobilink to sync
> We have an offline application that Estate Agencies use to capture
> properties, contacts canvass and such. The mobile application was written
> specially for the Agent.
> to have at their disposal all properties and contacts on a hand held
> device.On the application there is a property form and a contact
maintenance
> form.
> The property page has the picture displayed on it .
> All works well. You can update from the offline or the device to a central
> database.From there the agency's website and a few property portal
websites
> are updated.
> At the moment they can capture a picture on the offline and update to the
> server. Device then downloads a hidden page with all images relative to
that
> client. Images are stored in the device's cache.
> Now the interesting bit
> Agent takes a photo with the device and wants to assign it to the
> property.Easily done. I have written the pod (lots of help from Sybase)to
> take the image and convert to binary and save to the database..Data sync
> send data to server and I extract and write the image to the internet,
which
> is then downloaded by the hidden page Good and well works fine,
> BUT
> most of our clients work offline.Thus the picture is not available for
> displaying in the properties html page on the device after a new picture
is
> captured.They have to sync first.We thought it might be possible to write
> the image into the cache so that once captured it would be available for
> displaying immidiately.even if offline.
> Our wireless hotspots are few and far between. And more people don't like
> sharing.Something for Something.
> Mbusiness does not allow you to read a file from the device "hdd"
> memory.Normal javascript has a get file function but Mbusiness does not.
> I see 2 possible solutions.
> 1 - write to mbusiness cache
> 2- write pod to display the image but that would mean I have to leave the
> current html page and go to another page or application.
> Our users are not really computer literate(just lazy) and this could lead
to
> complications.
> Hope this explains abit more .
> Robert
>
>


Robert Posted on 2005-07-28 14:51:05.0Z
Reply-To: "Robert" <robert@cyberprop.com>
From: "Robert" <robert@cyberprop.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
References: <42dce353@forums-1-dub> <42dd0f48$1@forums-1-dub> <42ddfc54@forums-1-dub> <42e8a6dd$1@forums-2-dub>
Subject: Re: Image to Cache
Lines: 7
Organization: USP Designs
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: rrba-146-84-210.telkomadsl.co.za
X-Original-NNTP-Posting-Host: rrba-146-84-210.telkomadsl.co.za
Message-ID: <42e8f0d9@forums-1-dub>
Date: 28 Jul 2005 07:51:05 -0700
X-Trace: forums-1-dub 1122562265 165.146.84.210 (28 Jul 2005 07:51:05 -0700)
X-Original-Trace: 28 Jul 2005 07:51:05 -0700, rrba-146-84-210.telkomadsl.co.za
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:504
Article PK: 8918

thanks for the advice. But how does one display from the data base.
I don't know how to do that.I was told it was not possible to show .
The image is already in binary format.
Any sample coding would be appreciated.


Christopher Grim Posted on 2005-07-28 17:16:46.0Z
User-Agent: Microsoft-Entourage/11.1.0.040913
Subject: Re: Image to Cache
From: Christopher Grim <chrisgrim@hotmail.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
Message-ID: <BF0E611D.1637%chrisgrim@hotmail.com>
References: <42dce353@forums-1-dub> <42dd0f48$1@forums-1-dub> <42ddfc54@forums-1-dub> <42e8a6dd$1@forums-2-dub> <42e8f0d9@forums-1-dub>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
X-Original-NNTP-Posting-Host: macgrimreaper.sybase.com
X-Original-Trace: 28 Jul 2005 10:16:42 -0700, macgrimreaper.sybase.com
Lines: 24
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 28 Jul 2005 10:16:43 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 28 Jul 2005 10:16:46 -0700
X-Trace: forums-1-dub 1122571006 10.22.108.75 (28 Jul 2005 10:16:46 -0700)
X-Original-Trace: 28 Jul 2005 10:16:46 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:506
Article PK: 17704

Robert,

With a pod, you could launch another viewer. The client does have a
mime-player like api, which would allow you to write a pod that displays the
image in-line in the browser similar to the way flash is displayed via a
plug-in on the desktop. However, this api isn't currently documented and we
don't have an example. We have dome something like this in our professional
services organization, and I'm sure they would be happy to help you if you
would like to explore that option.

Chris...

On 7/28/05 7:51 AM, in article 42e8f0d9@forums-1-dub, "Robert"

<robert@cyberprop.com> wrote:

> thanks for the advice. But how does one display from the data base.
> I don't know how to do that.I was told it was not possible to show .
> The image is already in binary format.
> Any sample coding would be appreciated.
>
>
>


Enrico Pallazzo Posted on 2005-07-28 13:15:11.0Z
From: "Enrico Pallazzo" <enricopallazzo@myway.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
References: <42dce353@forums-1-dub>
Subject: Re: Image to Cache
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
X-Original-NNTP-Posting-Host: vpn-dub-058.sybase.com
Message-ID: <42e8da5b$1@forums-2-dub>
X-Original-Trace: 28 Jul 2005 06:15:07 -0700, vpn-dub-058.sybase.com
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 28 Jul 2005 06:15:08 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 28 Jul 2005 06:15:11 -0700
X-Trace: forums-1-dub 1122556511 10.22.108.75 (28 Jul 2005 06:15:11 -0700)
X-Original-Trace: 28 Jul 2005 06:15:11 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:502
Article PK: 8917

The short answer to your question is no. There is no mechanism for the
client to write new pages to the cache. Your approach is the only supported
way. A lot of people have been requesting the ability to display images from
the device in pages, its a feature we will definitely be looking at for a
future release.

"Robert" <robert@cyberprop.com> wrote in message
news:42dce353@forums-1-dub...
> is there a way to read an image file from the device and write it into the
> cache for displaying
> I have a pod that reads the image and writes the binary into a table
> field.
> Can I take that binary data and post it to the cache
>
>