当前位置: 首页>>代码示例>>Python>>正文


Python Folder.upload_file方法代码示例

本文整理汇总了Python中asposecloud.storage.Folder.upload_file方法的典型用法代码示例。如果您正苦于以下问题:Python Folder.upload_file方法的具体用法?Python Folder.upload_file怎么用?Python Folder.upload_file使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在asposecloud.storage.Folder的用法示例。


在下文中一共展示了Folder.upload_file方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_merge

# 需要导入模块: from asposecloud.storage import Folder [as 别名]
# 或者: from asposecloud.storage.Folder import upload_file [as 别名]
    def test_merge(self):
        folder = Folder()
        response = folder.upload_file('./data/split_workbook.xlsx')
        self.assertEqual(True, response)

        folder = Folder()
        response = folder.upload_file('./data/test_convert_cell.xlsx')
        self.assertEqual(True, response)

        wb = Workbook('split_workbook.xlsx')
        response = wb.merge('test_convert_cell.xlsx')
        self.assertEqual(dict, type(response))
开发者ID:vidyarani-dg,项目名称:Aspose_Cloud_SDK_For_Python,代码行数:14,代码来源:test_aspose_cells.py

示例2: test_append_tiff

# 需要导入模块: from asposecloud.storage import Folder [as 别名]
# 或者: from asposecloud.storage.Folder import upload_file [as 别名]
    def test_append_tiff(self):
        folder = Folder()
        response = folder.upload_file('./data/barcodeQR.tiff')
        self.assertEqual(True, response)

        folder = Folder()
        response = folder.upload_file('./data/test_convert_cell.tiff')
        self.assertEqual(True, response)

        doc = Document('barcodeQR.tiff')
        response = doc.append_tiff('test_convert_cell.tiff')
        self.assertEqual(dict, type(response))
开发者ID:vidyarani-dg,项目名称:Aspose_Cloud_SDK_For_Python,代码行数:14,代码来源:test_aspose_imaging.py

示例3: test_add_attachment

# 需要导入模块: from asposecloud.storage import Folder [as 别名]
# 或者: from asposecloud.storage.Folder import upload_file [as 别名]
    def test_add_attachment(self):
        folder = Folder()
        response = folder.upload_file('./data/EmailTest.eml')
        self.assertEqual(True, response)

        folder = Folder()
        response = folder.upload_file('./data/sample.tif')
        self.assertEqual(True, response)

        doc = Document('EmailTest.eml')
        response = doc.add_attachment('sample.tif')
        self.assertEqual(dict, type(response))
开发者ID:vidyarani-dg,项目名称:Aspose_Cloud_SDK_For_Python,代码行数:14,代码来源:test_aspose_email.py

示例4: test_convert_additonal_params

# 需要导入模块: from asposecloud.storage import Folder [as 别名]
# 或者: from asposecloud.storage.Folder import upload_file [as 别名]
    def test_convert_additonal_params(self):
        folder = Folder()
        response = folder.upload_file('./data/test_convert_slide.pptx')
        self.assertEqual(True, response)

        converter = Converter('test_convert_slide.pptx')
        converter.convert('tiff')
开发者ID:vidyarani-dg,项目名称:Aspose_Cloud_SDK_For_Python,代码行数:9,代码来源:test_aspose_slides.py

示例5: test_split_pdf

# 需要导入模块: from asposecloud.storage import Folder [as 别名]
# 或者: from asposecloud.storage.Folder import upload_file [as 别名]
    def test_split_pdf(self):
        folder = Folder()
        response = folder.upload_file('./data/test_file_on_storage.pdf')
        self.assertEqual(True, response)

        doc = Document('test_file_on_storage.pdf')
        response = doc.split_pdf()
        self.assertEqual(dict, type(response))
开发者ID:vidyarani-dg,项目名称:Aspose_Cloud_SDK_For_Python,代码行数:10,代码来源:test_aspose_pdf.py

示例6: test_update_tiff_frame

# 需要导入模块: from asposecloud.storage import Folder [as 别名]
# 或者: from asposecloud.storage.Folder import upload_file [as 别名]
    def test_update_tiff_frame(self):
        folder = Folder()
        response = folder.upload_file('./data/sample.tif')
        self.assertEqual(True, response)

        img = Image('sample.tif')
        response = img.update_tiff_frame(0,{'newWidth':10,'newHeight':10})
        self.assertTrue(os.path.exists(response))
开发者ID:vidyarani-dg,项目名称:Aspose_Cloud_SDK_For_Python,代码行数:10,代码来源:test_aspose_imaging.py

示例7: test_rotate_tiff_frame

# 需要导入模块: from asposecloud.storage import Folder [as 别名]
# 或者: from asposecloud.storage.Folder import upload_file [as 别名]
    def test_rotate_tiff_frame(self):
        folder = Folder()
        response = folder.upload_file('./data/sample.tif')
        self.assertEqual(True, response)

        img = Image('sample.tif')
        response = img.rotate_tiff_frame(0,'rotate90flipnone','/')
        self.assertTrue(os.path.exists(response))
开发者ID:vidyarani-dg,项目名称:Aspose_Cloud_SDK_For_Python,代码行数:10,代码来源:test_aspose_imaging.py

示例8: test_get_background

# 需要导入模块: from asposecloud.storage import Folder [as 别名]
# 或者: from asposecloud.storage.Folder import upload_file [as 别名]
    def test_get_background(self):
        folder = Folder()
        response = folder.upload_file('./data/test_convert_slide.pptx')
        self.assertEqual(True, response)

        doc = Document('test_convert_slide.pptx')
        response = doc.get_background(1)
        self.assertNotEquals(False, response)
开发者ID:vidyarani-dg,项目名称:Aspose_Cloud_SDK_For_Python,代码行数:10,代码来源:test_aspose_slides.py

示例9: test_extract_frame

# 需要导入模块: from asposecloud.storage import Folder [as 别名]
# 或者: from asposecloud.storage.Folder import upload_file [as 别名]
    def test_extract_frame(self):
        folder = Folder()
        response = folder.upload_file('./data/sample.tif')
        self.assertEqual(True, response)

        doc = Document('sample.tif')
        response = doc.extract_frame(0)
        self.assertTrue(os.path.exists(response))
开发者ID:vidyarani-dg,项目名称:Aspose_Cloud_SDK_For_Python,代码行数:10,代码来源:test_aspose_imaging.py

示例10: test_update_image

# 需要导入模块: from asposecloud.storage import Folder [as 别名]
# 或者: from asposecloud.storage.Folder import upload_file [as 别名]
    def test_update_image(self):
        folder = Folder()
        response = folder.upload_file('./data/barcodeQR.jpg')
        self.assertEqual(True, response)

        img = Image('barcodeQR.jpg')
        response = img.update_image({'newWidth': 20, 'newHeight': 20},'jpg')
        self.assertTrue(os.path.exists(response))
开发者ID:vidyarani-dg,项目名称:Aspose_Cloud_SDK_For_Python,代码行数:10,代码来源:test_aspose_imaging.py

示例11: test_get_aspect_ratio

# 需要导入模块: from asposecloud.storage import Folder [as 别名]
# 或者: from asposecloud.storage.Folder import upload_file [as 别名]
    def test_get_aspect_ratio(self):
        folder = Folder()
        response = folder.upload_file('./data/test_convert_slide.pptx')
        self.assertEqual(True, response)

        doc = Extractor('test_convert_slide.pptx')
        response = doc.get_aspect_ratio(1)
        self.assertNotEquals(False, response)
开发者ID:vidyarani-dg,项目名称:Aspose_Cloud_SDK_For_Python,代码行数:10,代码来源:test_aspose_slides.py

示例12: test_convert_storage_file

# 需要导入模块: from asposecloud.storage import Folder [as 别名]
# 或者: from asposecloud.storage.Folder import upload_file [as 别名]
    def test_convert_storage_file(self):
        folder = Folder()
        response = folder.upload_file('./data/test_convert_slide.pptx')
        self.assertEqual(True, response)

        converter = Converter('test_convert_slide.pptx')
        converter.convert(1,'png')
        self.assertTrue(os.path.exists('./output/test_convert_slide_1.png'))
开发者ID:AsposeShowcase,项目名称:Aspose_Words_Cloud,代码行数:10,代码来源:test_aspose_slides.py

示例13: test_rotate_image

# 需要导入模块: from asposecloud.storage import Folder [as 别名]
# 或者: from asposecloud.storage.Folder import upload_file [as 别名]
    def test_rotate_image(self):
        fld = Folder()
        response = fld.upload_file('./data/barcodeQR.png')
        self.assertEqual(response, True)

        imageObj = Image('barcodeQR.png')
        imageObj.rotate_image('rotate270flipnone','/','png')
        self.assertEqual(True, os.path.exists('./output/barcodeQR.png'))
开发者ID:AsposeShowcase,项目名称:Aspose_Words_Cloud,代码行数:10,代码来源:test_aspose_imaging.py

示例14: test_convert_tiff_to_fax

# 需要导入模块: from asposecloud.storage import Folder [as 别名]
# 或者: from asposecloud.storage.Folder import upload_file [as 别名]
    def test_convert_tiff_to_fax(self):
        fld = Folder()
        response = fld.upload_file('./data/barcodeQR.tiff')
        self.assertEqual(response, True)

        converter = Converter('barcodeQR.tiff')
        converter.convert_tiff_to_fax()
        self.assertEqual(True, os.path.exists('./output/barcodeQR.tiff'))
开发者ID:AsposeShowcase,项目名称:Aspose_Words_Cloud,代码行数:10,代码来源:test_aspose_imaging.py

示例15: test_resize_image

# 需要导入模块: from asposecloud.storage import Folder [as 别名]
# 或者: from asposecloud.storage.Folder import upload_file [as 别名]
    def test_resize_image(self):
        fld = Folder()
        response = fld.upload_file('./data/barcodeQR.png')
        self.assertEqual(response, True)

        imageObj = Image('barcodeQR.png')
        imageObj.resize_image('./data/barcodeQR.png',10,10,'barcodeQR.png','png')
        self.assertEqual(True, os.path.exists('./output/barcodeQR.png'))
开发者ID:AsposeShowcase,项目名称:Aspose_Words_Cloud,代码行数:10,代码来源:test_aspose_imaging.py


注:本文中的asposecloud.storage.Folder.upload_file方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。