Skip to Main Content

Oracle Developer Tools for Visual Studio

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Installation issues with the Oracle Developer Tools for Visual Studio 2017

user10875158Nov 14 2018 — edited Nov 16 2018

Hi,

after installing new Visual Studio Updates I have to reinstall the Oracle Developer Tools for Visual Studio 2017 everytime, because the database driver doesn't work anymore - very confusing.

Is there a workaround for this issue, so that I don't have to reinstall the tools?

The new release of the Oracle Developer Tools for Visual Studio 2017 18.3.0.0.0 works not at all after the installation - the integration in Visual Studio is missing afterwards, so that I can't connect to any

database - great work Oracle!

Sorry for my sarcasm, but is it very frustrating, if you want to do your work, but the Developer Tools won't work properly.

Thanks and regards,

Tom

This post has been answered by user10875158 on Nov 16 2018
Jump to Answer

Comments

66232
Hi,
attached two functions one for dumping the other for loading ...

public class Test {
private File fHandle = null;
private static String PATH = null ;
private BLOB bHandle = null;
private String fileName = null ;

protected void dumpBlobToFile() throws SQLException
{

FileOutputStream outstream = null;
InputStream instream = null;

try {
getFileHandle(); // Gets a new file handle.
if (bHandle != null)
instream = bHandle.getBinaryStream(); // Get the blob input stream
else
return ;

if (outstream == null)
outstream = new FileOutputStream(fHandle); // Get the file output stream.


// Read the input stream and write the output stream by chunks.
byte[] chunk = new byte[bHandle.getChunkSize()];
int i = -1;

while ((i = instream.read(chunk)) != -1) {
outstream.write(chunk, 0, i);
}
outstream.flush();
} catch (IOException e) {
e.printStackTrace();
} finally {
try {

// Close the input and output stream.
if (instream != null) {
instream.close();
instream = null ;
}

if (outstream != null) {
outstream.close();
outstream = null ;
}

} catch (IOException e) {
e.printStackTrace();
}
}
}
protected void dumpFileToBlob() throws SQLException
{

FileInputStream instream = null;
OutputStream outstream = null;

try {
getFileHandle(); // Gets a new file handle.

if (bHandle != null) // Get the clob output stream
outstream = bHandle.getBinaryOutputStream();
else
return ;

if (instream == null)
instream = new FileInputStream(fHandle); // Get the file input stream.


// Read the input stream and write the output stream by chunks.
byte[] chunk = new byte[bHandle.getChunkSize()];
int i = -1;

while ((i = instream.read(chunk)) != -1) {
outstream.write(chunk, 0, i);
}
} catch (IOException e) {
e.printStackTrace();
} finally {
try {

// Close the input and output stream.
if (instream != null) {
instream.close();
instream = null ;
}

if (outstream != null) {
outstream.close();
outstream = null ;
}

} catch (IOException e) {
e.printStackTrace();
}
}
}

public void setPath(String path)
{
this.PATH = path ;
}
/**
* Get a file handle
*/
private void getFileHandle()
{
fHandle = new File(PATH + fileName);
}
}

EA
1 - 1

Post Details

Added on Nov 14 2018
5 comments
10,032 views