Interface BlobSource
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
ব্লব উত্স অবজেক্টের জন্য ইন্টারফেস যা তাদের ডেটা Blob
হিসাবে রপ্তানি করতে পারে।
ক্লাস বাস্তবায়ন
নাম | সংক্ষিপ্ত বিবরণ |
---|
Blob | অ্যাপস স্ক্রিপ্ট পরিষেবাগুলির জন্য একটি ডেটা বিনিময় বস্তু৷ |
Chart | একটি চার্ট অবজেক্ট, যা একটি স্ট্যাটিক ইমেজে রূপান্তরিত হতে পারে। |
Document | একটি ডকুমেন্ট, যাতে এক বা একাধিক Tab অবজেক্ট থাকে, যার প্রতিটিতে সমৃদ্ধ পাঠ্য এবং উপাদান যেমন টেবিল এবং তালিকা থাকে। |
Embedded Chart | একটি চার্ট উপস্থাপন করে যা একটি স্প্রেডশীটে এম্বেড করা হয়েছে। |
File | গুগল ড্রাইভে একটি ফাইল। |
Gmail Attachment | Gmail থেকে একটি সংযুক্তি। |
HTTPResponse | এই ক্লাসটি ব্যবহারকারীদের HTTP প্রতিক্রিয়াগুলিতে নির্দিষ্ট তথ্য অ্যাক্সেস করতে দেয়। |
Html Output | একটি Html Output অবজেক্ট যা একটি স্ক্রিপ্ট থেকে পরিবেশন করা যেতে পারে। |
Image | একটি চিত্র প্রতিনিধিত্বকারী একটি Page Element । |
Inline Image | একটি এম্বেড করা ছবি প্রতিনিধিত্বকারী একটি উপাদান। |
Jdbc Blob | একটি JDBC Blob । |
Jdbc Clob | একটি JDBC Clob । |
Picture Fill | একটি ফিল যা একটি চিত্র রেন্ডার করে যা এর ধারকটির মাত্রায় প্রসারিত হয়। |
Positioned Image | একটি Paragraph নোঙ্গর করা স্থির অবস্থানের ছবি। |
Spreadsheet | Google পত্রক ফাইলগুলি অ্যাক্সেস এবং সংশোধন করুন৷ |
Static Map | স্ট্যাটিক মানচিত্র ইমেজ তৈরি এবং সজ্জা জন্য অনুমতি দেয়. |
পদ্ধতি
পদ্ধতি | রিটার্ন টাইপ | সংক্ষিপ্ত বিবরণ |
---|
get As(contentType) | Blob | নির্দিষ্ট বিষয়বস্তুর প্রকারে রূপান্তরিত একটি ব্লব হিসাবে এই বস্তুর ভিতরের ডেটা ফেরত দিন। |
get Blob() | Blob | একটি ব্লব হিসাবে এই বস্তুর ভিতরে ডেটা ফেরত দিন। |
বিস্তারিত ডকুমেন্টেশন
get As(contentType)
নির্দিষ্ট বিষয়বস্তুর প্রকারে রূপান্তরিত একটি ব্লব হিসাবে এই বস্তুর ভিতরের ডেটা ফেরত দিন। এই পদ্ধতিটি ফাইলের নামের সাথে উপযুক্ত এক্সটেনশন যোগ করে—উদাহরণস্বরূপ, "myfile.pdf"। যাইহোক, এটি অনুমান করে যে ফাইলের নামের অংশ যা শেষ সময়কাল অনুসরণ করে (যদি থাকে) একটি বিদ্যমান এক্সটেনশন যা প্রতিস্থাপন করা উচিত। ফলস্বরূপ, "ShoppingList.12.25.2014" "ShoppingList.12.25.pdf" হয়ে যায়।
রূপান্তরের জন্য দৈনিক কোটা দেখতে, Google পরিষেবাগুলির জন্য কোটা দেখুন। নতুন তৈরি করা Google Workspace ডোমেন সাময়িকভাবে কঠোর কোটার অধীন হতে পারে।
পরামিতি
নাম | টাইপ | বর্ণনা |
---|
content Type | String | MIME প্রকারে রূপান্তর করতে হবে৷ বেশিরভাগ ব্লবের জন্য, 'application/pdf' একমাত্র বৈধ বিকল্প। BMP, GIF, JPEG, বা PNG ফর্ম্যাটে ছবির জন্য, 'image/bmp' , 'image/gif' , 'image/jpeg' , বা 'image/png' এর যেকোনো একটিও বৈধ। একটি Google ডক্স ডকুমেন্টের জন্য, 'text/markdown' বৈধ। |
প্রত্যাবর্তন
Blob
- একটি ব্লব হিসাবে ডেটা।
get Blob()
একটি ব্লব হিসাবে এই বস্তুর ভিতরে ডেটা ফেরত দিন।
প্রত্যাবর্তন
Blob
- একটি ব্লব হিসাবে ডেটা।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003e\u003ccode\u003eBlobSource\u003c/code\u003e is an interface allowing objects to export their data as a Blob.\u003c/p\u003e\n"],["\u003cp\u003eIt offers two primary methods: \u003ccode\u003egetAs()\u003c/code\u003e to retrieve data as a Blob with a specific content type and \u003ccode\u003egetBlob()\u003c/code\u003e for getting data as a raw Blob.\u003c/p\u003e\n"],["\u003cp\u003eVarious Apps Script objects, including Documents, Spreadsheets, and Images, implement this interface.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egetAs()\u003c/code\u003e can convert data to formats like PDF, common image types, and Markdown for Google Docs, but is subject to usage quotas.\u003c/p\u003e\n"]]],[],null,["# Interface BlobSource\n\nBlobSource\n\nInterface for objects that can export their data as a [Blob](/apps-script/reference/base/blob).\n\n### Implementing classes\n\n| Name | Brief description |\n|------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Blob](/apps-script/reference/base/blob) | A data interchange object for Apps Script services. |\n| [Chart](../charts/chart.html) | A Chart object, which can be converted to a static image. |\n| [Document](../document/document.html) | A document, containing one or more [Tab](../document/tab.html) objects, each of which contains rich text and elements such as tables and lists. |\n| [EmbeddedChart](../spreadsheet/embedded-chart.html) | Represents a chart that has been embedded into a spreadsheet. |\n| [File](../drive/file.html) | A file in Google Drive. |\n| [GmailAttachment](../gmail/gmail-attachment.html) | An attachment from Gmail. |\n| [HTTPResponse](../url-fetch/http-response.html) | This class allows users to access specific information on HTTP responses. |\n| [HtmlOutput](../html/html-output.html) | An `Html``Output` object that can be served from a script. |\n| [Image](../slides/image.html) | A [PageElement](../slides/page-element.html) representing an image. |\n| [InlineImage](../document/inline-image.html) | An element representing an embedded image. |\n| [JdbcBlob](../jdbc/jdbc-blob.html) | A JDBC `Blob`. |\n| [JdbcClob](../jdbc/jdbc-clob.html) | A JDBC `Clob`. |\n| [PictureFill](../slides/picture-fill.html) | A fill that renders an image that's stretched to the dimensions of its container. |\n| [PositionedImage](../document/positioned-image.html) | Fixed position image anchored to a [Paragraph](../document/paragraph.html). |\n| [Spreadsheet](../spreadsheet/spreadsheet.html) | Access and modify Google Sheets files. |\n| [StaticMap](../maps/static-map.html) | Allows for the creation and decoration of static map images. |\n\n### Methods\n\n| Method | Return type | Brief description |\n|--------------------------------------|------------------------------------------|---------------------------------------------------------------------------------------|\n| [getAs(contentType)](#getAs(String)) | [Blob](/apps-script/reference/base/blob) | Return the data inside this object as a blob converted to the specified content type. |\n| [getBlob()](#getBlob()) | [Blob](/apps-script/reference/base/blob) | Return the data inside this object as a blob. |\n\nDetailed documentation\n----------------------\n\n### `get``As(contentType)`\n\nReturn the data inside this object as a blob converted to the specified content type. This\nmethod adds the appropriate extension to the filename---for example, \"myfile.pdf\". However, it\nassumes that the part of the filename that follows the last period (if any) is an existing\nextension that should be replaced. Consequently, \"ShoppingList.12.25.2014\" becomes\n\"ShoppingList.12.25.pdf\".\n\nTo view the daily quotas for conversions, see [Quotas for Google\nServices](https://developers.google.com/apps-script/guides/services/quotas). Newly created Google Workspace domains might be temporarily subject to stricter\nquotas.\n\n#### Parameters\n\n| Name | Type | Description |\n|-----------------|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `content``Type` | `String` | The MIME type to convert to. For most blobs, `'application/pdf'` is the only valid option. For images in BMP, GIF, JPEG, or PNG format, any of `'image/bmp'`, `'image/gif'`, `'image/jpeg'`, or `'image/png'` are also valid. For a Google Docs document, `'text/markdown'` is also valid. |\n\n#### Return\n\n\n[Blob](/apps-script/reference/base/blob) --- The data as a blob.\n\n*** ** * ** ***\n\n### `get``Blob()`\n\nReturn the data inside this object as a blob.\n\n#### Return\n\n\n[Blob](/apps-script/reference/base/blob) --- The data as a blob."]]