Greetings-
are there any pitfalls/costs/etc to be aware of using the "$dos2unix <filename>" utility in Solaris 8? does it really work as simply as it's described / recommended in other threads ?
We want to establish the procedure / develop a script or procedure to automatically strip out ^M... (1 Reply)
I'm having some probs and i know in unix i can do a dos2unix command and fix it, and it looks like that may be my problem now, but linux doesn't have dos2unix of course, anything comparable? (4 Replies)
Hi,
like to ask why when i tried to run my .sh file to convert maybe a text file using dos2unix -ascii ${DATAFILE5} ${DATAFILE5} i got an error saying :
could not open /dev/kbd to get keyboard type US keyboard assumed
could not get keyboard type US keyboard assumed
Is it because we dun like... (4 Replies)
Hi All,
I want to use the command "dos2unix" to format the file line break from win to unix,
but after changing the file permission has been change to 600.
how can i keep the original permisson after formatting?
Many thz (2 Replies)
hi
I want to suppress the output of dos2unix command in my shell script. I'm using follwing command in my script
dos2unix somefile >/dev/null
But it's still showing output while executing the script.Please help me to sort this out
Thanks (4 Replies)
Hi,
Does anyone know, how to use dos2unix command for binary files? When i am using the command, the binary file gets converted to ASCII file. I want binary file to remain in the binary format. (4 Replies)
hi,
need some urgent inputs.....
I have a folder, which has both files and directories as its contents.
I want to convert all the files (Excluding the directories) from dos to unix mode using the command 'dos2unix'.....
please can any one help me in providing the command to convert... (3 Replies)
if (my $temp2=$b2e_r->cmd(cmd=>"dos2unix $b2e_file_name"))
Even if it fails as,
Jul 25 17:17:02 dos2unix /volume/systest/hello_manoj.results
dos2unix /volume/systest/hello_manoj.results
dos2unix: converting file /volume/systest/hello_manoj.results to UNIX format ...
Failed to open... (3 Replies)
Hi,
I was trying to dos2unix a file that has some special characters but dos2unix converted those into different format. I am working on sun server.
I guess the default for dos2unix on sun server is ISO format .
Can i change the format so that it does the conversion in UTF format?
Because I... (3 Replies)
Hi,
I have to test to see if dos2unix is installed on the machine. Right now I am typing in dos2unix and hitting ctrl C. Is there a better workaround for this. If dos2unix is there is need to print the statement saying its there and vice versa. How can i accomplish this.
thank you in... (1 Reply)
Discussion started by: tarreddy
1 Replies
LEARN ABOUT PHP
fbsql_read_blob
FBSQL_READ_BLOB(3) 1 FBSQL_READ_BLOB(3)fbsql_read_blob - Read a BLOB from the databaseSYNOPSIS
string fbsql_read_blob (string $blob_handle, [resource $link_identifier])
DESCRIPTION
Reads BLOB data from the database.
If a select statement contains BLOB and/or CLOB columns FrontBase will return the data directly when data is fetched. This default behav-
ior can be changed with fbsql_set_lob_mode(3) so the fetch functions will return handles to BLOB and CLOB data. If a handle is fetched a
user must call fbsql_read_blob(3) to get the actual BLOB data from the database.
PARAMETERS
o $blob_handle
- A BLOB handle, returned by fbsql_create_blob(3).
o $
link_identifier -A FrontBase link identifier returned by fbsql_connect(3) or fbsql_pconnect(3).If optional and not specified, the
function will try to find an open link to the FrontBase server and if no such link is found it will try to create one as if
fbsql_connect(3) was called with no arguments.
RETURN VALUES
Returns a string containing the specified BLOB data.
EXAMPLES
Example #1
fbsql_read_blob(3) example
<?php
$link = fbsql_pconnect("localhost", "_SYSTEM", "secret")
or die("Could not connect");
$sql = "SELECT BLOB_COLUMN FROM BLOB_TABLE;";
$rs = fbsql_query($sql, $link);
$row_data = fbsql_fetch_row($rs);
// $row_data[0] will now contain the blob data for the first row
fbsql_free_result($rs);
$rs = fbsql_query($sql, $link);
fbsql_set_lob_mode($rs, FBSQL_LOB_HANDLE);
$row_data = fbsql_fetch_row($rs);
// $row_data[0] will now contain a handle to the BLOB data in the first row
$blob_data = fbsql_read_blob($row_data[0]);
fbsql_free_result($rs);
?>
SEE ALSO fbsql_create_blob(3), fbsql_read_clob(3), fbsql_set_lob_mode(3).
PHP Documentation Group FBSQL_READ_BLOB(3)