[Gambas-user] Hot to load and savbe to DB a binary file (not image either archive strings) (PICCORO McKAY Lenz)

Randall Morgan rmorgan62 at ...626...
Mon Jul 15 20:57:55 CEST 2013


I'm guessing Piccoro's tone is due to his frustraition with trying to
comprehend the way GAMBAS works. This is the place to ask for help but not
the place to post insults. But we must also be understanding of new users
in the forum.

Piccoro, there is no easy way to learn anything other than doing it and
struggling through the difficulties. Don't give up. I would suggest you
read the Wiki and the Gambas Book. Find the book here:
http://beginnersguidetogambas.com/



On Mon, Jul 15, 2013 at 9:29 AM, Tobias Boege <taboege at ...626...> wrote:

> On Mon, 15 Jul 2013, PICCORO McKAY Lenz wrote:
> > after long time of various triyngs get some example and got this error
> now:
> >
> > ....
> >             data = wtable["hex_huelladactilar"]
> >             If Exist(User.Home &/ ".fprint/0002/00000000/1") Then
> >                 Kill User.Home &/ ".fprint/0002/00000000/1"
> >             Endif
> >             myFinger = Open User.Home &/ ".fprint/0002/00000000/1" For
> Write
> >             data.Write(myFinger)
> >             Close myFinger
> >
> > but in open line said "file not exits" .. i wish to create the file from
> > stream.. not open for write
> >
>
> So you want to write to it and to create it if it doesn't exist (and it
> will
> never exist because of the three lines above):
>
> myFinger = Open User.Home &/ ".fprint/0002/00000000/1" For Write Create
>
> Note the "Create" keyword at the end of the line. "For Write Create" will
> also truncate the file to a size of 0 if it exists while opening so the If
> clause before the Open statement is effectively useless.
>
> > so then where are the examples for that? again lacks on documentation and
> > no suggestions..
>
> You can find my explanation above in the documentation[0], too.
>
> It seems that you are right with the first point, though. I couldn't find
> any example of how to use files. I'll put that on my schedule...
>
> > i wish to help and made good apps for business into free
> > soft, but seems its to hard.. free soft only work in nerd-like and
> freakers
> > computers ? please let probe theres not such
>
> Wait... You know that this is the gambas-user mailing list, no? By far most
> attendees here can program in Gambas very well. Do you realise that you
> asked for help and at the same time called us freaks? (Well you conditioned
> that "freaks" by whether we can help you or not - which is IMHO even
> worse.)
>
> Regards,
> Tobi
>
> [0] http://gambasdoc.org/help/lang/open?v3
>
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
If you ask me if it can be done. The answer is YES, it can always be done.
The correct questions however are... What will it cost, and how long will
it take?



More information about the User mailing list