|
@@ -462,7 +462,7 @@ class labkeyURIHandler(slicer.vtkURIHandler):
|
|
return False
|
|
return False
|
|
|
|
|
|
#make an URL request
|
|
#make an URL request
|
|
- with open(localPath, 'r') as f:
|
|
|
|
|
|
+ with open(localPath, 'rb') as f:
|
|
data=f.read()
|
|
data=f.read()
|
|
remotePath=self.GetLabkeyPathFromRelativePath(relativePath)
|
|
remotePath=self.GetLabkeyPathFromRelativePath(relativePath)
|
|
self.put(remotePath,data)
|
|
self.put(remotePath,data)
|